using System;

namespace Camalon.Drawing.Samples.CSharp
{
	/// <summary>
	/// Summary description for OutlineText.
	/// </summary>
	public class OutlineText:Camalon.Drawing.ShapeContainer
	{
		private Camalon.Drawing.Shapes.TextOnlyShape textShape;
		private Camalon.Drawing.ShapePen textPen;
		private Camalon.Drawing.Outline outline;
		private Camalon.Drawing.LinearGradientFill textFill;
        private Camalon.Drawing.Shapes.TextOnlyShape textShapeNonOutline;

		private void InitializeComponent()
		{
            this.textShape = new Camalon.Drawing.Shapes.TextOnlyShape();
            this.textFill = new Camalon.Drawing.LinearGradientFill();
            this.outline = new Camalon.Drawing.Outline();
            this.textPen = new Camalon.Drawing.ShapePen();
            this.textShapeNonOutline = new Camalon.Drawing.Shapes.TextOnlyShape();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // textShape
            // 
            this.textShape.Fill = this.textFill;
            this.textShape.FillMode = System.Drawing.Drawing2D.FillMode.Winding;
            this.textShape.Font = new System.Drawing.Font("Comic Sans MS", 144F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.textShape.Outline = this.outline;
            this.textShape.Pen = this.textPen;
            this.textShape.Position = new System.Drawing.Point(79, 177);
            this.textShape.Size = new System.Drawing.Size(430, 210);
            this.textShape.Text = "A b i";
            this.textShape.TextFill = this.textFill;
            this.textShape.TextPen = this.textPen;
            // 
            // textFill
            // 
            this.textFill.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Brown),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.IndianRed),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.NavajoWhite, 1F)};
            // 
            // outline
            // 
            this.outline.Flatness = 0.1F;
            this.outline.Width = 6F;
            // 
            // textPen
            // 
            this.textPen.ForegroundPen = false;
            this.textPen.LineJoin = System.Drawing.Drawing2D.LineJoin.Round;
            this.textPen.MiterLimit = 0F;
            // 
            // textShapeNonOutline
            // 
            this.textShapeNonOutline.Fill = this.textFill;
            this.textShapeNonOutline.Font = new System.Drawing.Font("Comic Sans MS", 144F, System.Drawing.FontStyle.Bold);
            this.textShapeNonOutline.MinSize = new System.Drawing.Size(100, 214);
            this.textShapeNonOutline.Pen = this.textPen;
            this.textShapeNonOutline.Position = new System.Drawing.Point(9, 30);
            this.textShapeNonOutline.Size = new System.Drawing.Size(440, 214);
            this.textShapeNonOutline.Text = "A b i";
            this.textShapeNonOutline.TextFill = this.textFill;
            this.textShapeNonOutline.TextPen = this.textPen;
            // 
            // OutlineText
            // 
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.textShapeNonOutline,
            this.textShape});
            this.Size = new System.Drawing.Size(570, 460);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}
	
		public OutlineText()
		{
			//
			// TODO: Add constructor logic here
			//

			InitializeComponent();
		}
	}
}
